//
//  CGFloatExtension.swift
//  DateNote
//
//  Created by 杨立鹏 on 2018/3/8.
//  Copyright © 2018年 杨立鹏. All rights reserved.
//

import UIKit

extension CGFloat{
    var auto: CGFloat {
        return self * UIScreen.main.bounds.width / 375
    }
}

extension Double {
    var auto: CGFloat {
        return  CGFloat(self) * UIScreen.main.bounds.width / 375
    }
}

extension Float {
    var auto: CGFloat {
        return  CGFloat(self) * UIScreen.main.bounds.width / 375
    }
}



